package cn.lds.healthj377.service;

import cn.lds.healthj377.domain.User;
import cn.lds.healthj377.dto.ResponseDTO;
import cn.lds.healthj377.exception.SysException;

import java.math.BigDecimal;
import java.util.List;

public interface UserService {

    ResponseDTO<List<User>> selectUserAll(User user) throws SysException;

    ResponseDTO<User> selectUserById(Integer id) throws SysException;

    ResponseDTO<User> loginUser(User user) throws SysException;

    /**
     * 添加用户
     * @param user
     * @return
     */
    ResponseDTO addUser(User user);

    ResponseDTO regUser(User user) throws SysException;

    ResponseDTO modifyUser(User user) throws SysException;

    ResponseDTO removeUserById(Integer id);

    ResponseDTO thransfer(Integer fromUserId, Integer toUserId,int many);
}
